﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Quartz;

namespace QuartzExtTest.JobTypes
{
    public class ConsoleJob: IJob
    {
        public Task Execute(IJobExecutionContext context)
        {
            return Task.Run(() =>
            {
                var name = context.MergedJobDataMap["name"];
                Console.WriteLine($"{DateTime.Now:yyyy-MM-dd HH:mm:ss} {name}");
            });
        }
    }
}
